Skip to content

Conversation

@Lagrang3
Copy link
Collaborator

@Lagrang3 Lagrang3 commented Jan 7, 2025

Allow renepay to read group ids from listsenpay with values that fit into u64 integer type.
Previously renepay was using a mixture of u32 and u64 types to handle group ids.

Changelog-Fixed: renepay: read groupids as u64 integers.

Fixes #7968

@Lagrang3 Lagrang3 added this to the v25.02 milestone Feb 6, 2025
@rustyrussell
Copy link
Contributor

Rebased on master, fixed gcc -O3 wanting initialization for value (not smart enough to see it's protected by a bool flag).

Changelog-Fixed: renepay: read groupids as u64 integers.

Signed-off-by: Lagrang3 <[email protected]>
Change functions json_pay and json_paystatus to json_renepay
and json_renepaystatus to match the conventional naming.
This is helpful for grep searches.

Changelog-None

Signed-off-by: Lagrang3 <[email protected]>
@rustyrussell
Copy link
Contributor

Logic seems flawed, assert trips when there's a pending payment... (or did I break something in rebase?)

@Lagrang3 Lagrang3 force-pushed the renepay-64bit-groupid branch from 05a6b08 to 27e7bbe Compare February 13, 2025 14:22
Searches the first unused groupid and uses that number for the current
payment attempt.
We previously used the highest value of used groupid + 1, which breaks
in a few corner cases.

Changelog-None

Signed-off-by: Lagrang3 <[email protected]>
@Lagrang3 Lagrang3 force-pushed the renepay-64bit-groupid branch from 27e7bbe to 728edf3 Compare February 13, 2025 16:19
@endothermicdev
Copy link
Collaborator

Looks reasonable and the logic seems to be in good shape now.
ACK 728edf3

@endothermicdev endothermicdev merged commit a2a186f into ElementsProject:master Feb 14, 2025
38 of 40 checks passed
@Lagrang3 Lagrang3 deleted the renepay-64bit-groupid branch February 14, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

renepay crashes after retrying an xpay payment

3 participants